import { configureStore } from "@reduxjs/toolkit";
import * as reducer from './modules';

// configureStore 创建一个 redux 数据
const store = configureStore({
  // 合并多个Slice
  reducer: {
    ...reducer,
  },
  middleware: getDefaultMiddleware => getDefaultMiddleware({
    //关闭redux序列化检测
    serializableCheck: false
  })
});

export default store;